package com.procurement.bidding.mapper;

import com.procurement.bidding.domain.PcmBiddingMiddle;
import com.procurement.bidding.domain.PcmEvaluationRuleDetail;
import com.procurement.bidding.domain.PcmPublicAttachment;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@SuppressWarnings("all")
public interface PcmBiddingMiddleMapper {
//    List<PcmBiddingMiddle> showAllByNumberName(Map<String,Object> map);

    //插入中间表关联需求和项目
    Integer addBiddingMiddle(Map<String,Object> map);

    //查询全部招标项目
    List<PcmBiddingMiddle> showAllByMiddleNumberName(Map<String,Object> map);

    //根据id查询招标项目
    PcmBiddingMiddle showAllByMiddleMainById(Long middleId);

    //根据id查询供应商报名的回显的数据
    PcmBiddingMiddle selApplicationGys(Long middleId);

    //根据供应商用户联表登录用户id查询供应商参加的招标信息
    List<Map<String,Object>> selByUserId(Map<String,Object> map);

    PcmBiddingMiddle selByMiddleIdTouBio(Long middleId);

    //根据登录id查询供应商id
    Long findBySupplierId(Long userId);

    List<PcmEvaluationRuleDetail> selRuleDetailList(@Param("middleId") Long middleId, @Param("supplierId") Long supplierId,@Param("expertScoreId") Long expertScoreId);

    List<PcmPublicAttachment> selAttachmentList(Long invitationSupplierId);

    List<Map<String,Object>> selOpening(Map<String,Object> map);
}

